package com.aaa.controller;

import com.aaa.service.UserService;
import com.aaa.vo.LoginVo;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月23日16:10
 */
@RestController
@RequestMapping("/login")
public class LoginController {

//    @Autowired
//    private UserService userService;
//    @PostMapping("/login")
//    public Result login(@RequestBody LoginVo loginVo){
//        return userService.findByNameAndPassword(loginVo.getUsername(),loginVo.getPassword());
//
//    }
}
